home *** CD-ROM | disk | FTP | other *** search
/ Colorado Rockies 2000 / Colorado Rockies 2000 by US West.iso / pc / SET_VAR.BAT < prev    next >
DOS Batch File  |  2000-05-05  |  720b  |  30 lines

  1. echo off
  2. rem *********************************************************
  3. rem *
  4. rem *    To set the STUID environment variable and start
  5. rem *    the go.bat file for a given course
  6. rem *
  7. rem *    The arguments are as follows:
  8. rem *           1.     drive for course exe/bat
  9. rem *           2.     path for course exe/bat
  10. rem *           3.     name of course exe/bat (usually go.bat)
  11. rem *           4.     student number value for env variable
  12. rem *           5.     path value for env variable
  13. rem *
  14. rem *********************************************************
  15.  
  16. rem     Change to course drive
  17. %1
  18.  
  19. rem     Change to course directory
  20. cd %2
  21.  
  22. if %4==nul goto label
  23. set STUID=%4 %5
  24.  
  25. :label
  26.  
  27. %3
  28.  
  29.  
  30.